import request from '@/utils/request'

// 新增购物车
export function insertCart(drugId) {
    return request({
      url: '/medicine/cart/' + drugId,
      method: 'post'
    })
  }

//查看我的采购
export function listCart() {
  return request({
    url: '/medicine/cart/list',
    method: 'get'
  })
}
//更新数量
export function updateCartNum(drugId,cartDrugNum) {
  return request({
    url: '/medicine/cart/'+drugId+'/'+cartDrugNum,
    method: 'put'
  })
}
//更新数量
export function deleteCartOption(_drugIds) {
  return request({
    url: '/medicine/cart/'+_drugIds,
    method: 'delete'
  })
}

